fix QTextFormat::FullWidthSelection for right-to-left text layouts
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Sun, 14 Nov 2021 13:34:39 +0000 (13:34 +0000)
committerDmitry Shachnev <mitya57@debian.org>
Sun, 14 Nov 2021 13:34:39 +0000 (13:34 +0000)
commit08c6e54a7c2a3a273e6ddd761b5a18b34509304f
tree8fe94d2bca8f7a9919f7cab2d558e21b1dbcd2fd
parent2ddcbddd312c1d8a50bc4f92243ab5518464cfdf
fix QTextFormat::FullWidthSelection for right-to-left text layouts

Origin: upstream, https://code.qt.io/cgit/qt/qtbase.git/commit/?id=a7894855f2f59028
Last-Update: 2021-08-15

Using the QTextFormat::FullWidthSelection property to select a line
would previously not take into account right-to-left text layouts.

With this patch, the whole line should now be drawn correctly for both
left-to-right, and right-to-left layouts.

Gbp-Pq: Name full_width_selection_rtl.diff
src/gui/text/qtextlayout.cpp